#ifndef HISTORYMESSAGEDIALOG_H
#define HISTORYMESSAGEDIALOG_H

#include <QDialog>
#include <QWidget>
#include <QLineEdit>
#include <QRadioButton>
#include <QDateTimeEdit>
#include <QGridLayout>
#include "model/data.h"

class HistoryMessageItem: public QWidget
{
    Q_OBJECT
public:
    HistoryMessageItem(const model::Message& msg);
private:
};


class HistoryMessageDialog : public QDialog
{
    Q_OBJECT
public:
    HistoryMessageDialog(QWidget* parent);
    void addItem(const model::Message& msg);
    void clear();

private:
    QRadioButton* keySearchBtn;
    QRadioButton* timeSearchBtn;
    QLineEdit* searchEdit;
    QDateTimeEdit* begTimeEdit;
    QDateTimeEdit* endTimeEdit;

    QVBoxLayout* vLayout;

};

#endif // HISTORYMESSAGEDIALOG_H
